package com.cookor.poi.modules.phy.entity;

import com.cookor.poi.common.persistence.DataEntity;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;

public class TPatient extends DataEntity<TPatient> {
  private static final long serialVersionUID = 1L;
  
  private Integer tenantId;
  
  private String openId;
  
  private String patientName;
  
  private Integer status;
  
  private String card;
  
  private String mobile;
  
  private String address;
  
  private Integer gender;
  
  private String nickName;
  
  private String cardLike;
  
  private String mobileLike;
  
  public TPatient() {}
  
  public TPatient(String id) {
    super(id);
  }
  
  @NotNull(message = "租户id不能为空")
  public Integer getTenantId() {
    return this.tenantId;
  }
  
  public void setTenantId(Integer tenantId) {
    this.tenantId = tenantId;
  }
  
  @NotNull(message = "OpenId不能为空")
  public String getOpenId() {
    return this.openId;
  }
  
  public void setOpenId(String openId) {
    this.openId = openId;
  }
  
  @Length(min = 0, max = 64, message = "患者姓名长度必须介于 0 和 64 之间")
  public String getPatientName() {
    return this.patientName;
  }
  
  public void setPatientName(String patientName) {
    this.patientName = patientName;
  }
  
  public Integer getStatus() {
    return this.status;
  }
  
  public void setStatus(Integer status) {
    this.status = status;
  }
  
  @Length(min = 0, max = 64, message = "身份证号长度必须介于 0 和 64 之间")
  public String getCard() {
    return this.card;
  }
  
  public void setCard(String card) {
    this.card = card;
  }
  
  @Length(min = 0, max = 32, message = "联系电话长度必须介于 0 和 32 之间")
  public String getMobile() {
    return this.mobile;
  }
  
  public void setMobile(String mobile) {
    this.mobile = mobile;
  }
  
  @Length(min = 0, max = 127, message = "地址长度必须介于 0 和 127 之间")
  public String getAddress() {
    return this.address;
  }
  
  public void setAddress(String address) {
    this.address = address;
  }
  
  public Integer getGender() {
    return this.gender;
  }
  
  public void setGender(Integer gender) {
    this.gender = gender;
  }
  
  public String getNickName() {
    return this.nickName;
  }
  
  public void setNickName(String nickName) {
    this.nickName = nickName;
  }
  
  public static long getSerialVersionUID() {
    return 1L;
  }
  
  public String getCardLike() {
    return this.cardLike;
  }
  
  public void setCardLike(String cardLike) {
    this.cardLike = cardLike;
  }
  
  public String getMobileLike() {
    return this.mobileLike;
  }
  
  public void setMobileLike(String mobileLike) {
    this.mobileLike = mobileLike;
  }
}
